/* USER CODE BEGIN Header */
/**
 ******************************************************************************
 * @file           : main.h
 * @brief          : Header for main.c file.
 *                   This file contains the common defines of the application.
 ******************************************************************************
 * @attention
 *
 * Copyright (c) 2025 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
 * in the root directory of this software component.
 * If no LICENSE file comes with this software, it is provided AS-IS.
 *
 ******************************************************************************
 */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define user_SPI1_RC522def SET
#define user_TIM6_Enable SET
#define user_FreeRTOS SET
#define KEY_Left_Pin GPIO_PIN_13
#define KEY_Left_GPIO_Port GPIOC
#define KEY_Up_Pin GPIO_PIN_0
#define KEY_Up_GPIO_Port GPIOA
#define KEY_Down_Pin GPIO_PIN_2
#define KEY_Down_GPIO_Port GPIOH
#define KEY_Right_Pin GPIO_PIN_3
#define KEY_Right_GPIO_Port GPIOH
#define I2C_SCL_self_Pin GPIO_PIN_4
#define I2C_SCL_self_GPIO_Port GPIOH
#define I2C_SDA_self_Pin GPIO_PIN_5
#define I2C_SDA_self_GPIO_Port GPIOH
#define TPAD_Pin GPIO_PIN_5
#define TPAD_GPIO_Port GPIOA
#define LED1_Pin GPIO_PIN_0
#define LED1_GPIO_Port GPIOB
#define LED0_Pin GPIO_PIN_1
#define LED0_GPIO_Port GPIOB
#define IO_debug_self_Pin GPIO_PIN_14
#define IO_debug_self_GPIO_Port GPIOB
#define GPIO_7620_SDA_Pin GPIO_PIN_13
#define GPIO_7620_SDA_GPIO_Port GPIOG
#define GPIO_7620_SCL_Pin GPIO_PIN_14
#define GPIO_7620_SCL_GPIO_Port GPIOG

/* USER CODE BEGIN Private defines */
/*
 * 两种写SD方式的转换标志位
 * 启用 ：仅用一个线程，读数据时判断里面的信息，自动去除数据头等无用信息
 * 禁用 ：用两个线程，一个负责将串口发来的信息完整写入一个文件，一个负责将文件中的无用信息去除
 */
#define SD_Write_New SET
/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
